<?php

$cakeDescription = __d('cake_dev', 'Garada Project');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
  echo $this->Html->meta('icon');

  echo $this->Html->css('cake.generic');
  echo $this->Html->css('estilo');

  echo $this->Html->script('jquery110');
  echo $this->Html->script('tiny_mce/tiny_mce');
  echo $this->fetch('meta');
  echo $this->fetch('css');
  echo $this->fetch('script');

  echo $this->Html->css('bootstrap.css');
  echo $this->Html->css('dt/DT_bootstrap.css');

  echo $this->Html->css('plugins/font-awesome/css/font-awesome.min.css');
  echo $this->Html->css('bootstrap.css.map');
  echo $this->Html->css('jquery.ui.theme');
  echo $this->Html->css('jquery.ui.tooltip');

  echo $this->Html->script('jquery-1.11.0');
  echo $this->Html->script('jquery-ui-1.10.4.custom.min');
  echo $this->Html->script('jquery.maskedinput-1.3');
  echo $this->Html->script('jquery.ui.tooltip');
  echo $this->Html->script('jquery.ui.position');
  echo $this->Html->script('jquery.ui.widget');
  echo $this->Html->script('jquery.validate');
  echo $this->Html->script('bootstrap.min');
  echo $this->Html->script('jquery.dataTables.min');
  ?>
</head>
<body>
	<body>	
    <div class="col-occurrence">
      <h1><?php echo $this->Html->image('GaradaLogo.png'); ?></h1>
    </div>
    <nav class="navbar navbar-default" role="navigation">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/Estagio/estagio2-2014-1/garada/Implementacao"><i class="fa fa-home"></i> Home</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-folder-open"></i> Relatórios<b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li>
                  <?php echo $this->Html->link(__('<i class="fa fa-file-o"></i> Meus'), array('controller' => 'relatorios', 'action' => 'meus_relatorios'), array('escape' => false)); ?>
                </li>
                <li>
                  <?php echo $this->Html->link(__('<i class="fa fa-files-o"></i> Outros'), array('controller' => 'relatorios', 'action' => 'index'), array('escape' => false)); ?>
                </li>
              </ul>
            </li>
            <li>
              <a href="/Estagio/estagio2-2014-1/garada/Implementacao/atividades"><i class="fa fa-th-list"></i> Atividades</a>
            </li>
            <li>
              <a href="/Estagio/estagio2-2014-1/garada/Implementacao/estagios"><i class="fa fa-users"></i> Estágios</a>
            </li>
          </ul>
          <div>          
          </div><!-- /.container-fluid -->
        </nav>
        <div id="container">

         <div class="login-logout">
          <?php
          if ($this->Session->check('Auth.User')){
            $user = $this->Session->read('Auth'); 
            echo "Olá, " . $user['User']['nome'] . " [";
            echo $this->Html->link('Logout', array('controller' => 'Users', 'action' => 'logout'));
            echo "]";
          } else {
            echo "[" . $this->Html->link('Login', array('controller' => 'Users', 'action' => 'login')) . "]";
          }
          ?>
        </div>

        <div id="content">

         <?php echo $this->Session->flash(); ?>

         <?php echo $this->fetch('content'); ?>
       </div>
       <div id="footer">
        <p>G A R A D A P R O J E C T</p>	
      </div>
    </div>
  </body>
  </html>	